﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using phones.Model;
using System.Collections.ObjectModel;

namespace phones.Repository
{
    public class ServiceNodesRepository : BaseRepository<ServiceNode>
    {
        public ServiceNode GetByName(string name)
        {
            var node = Context.ServiceNodes.FirstOrDefault(x => x.Name == name);
            return node;                       
        }
    }
}
